#define _CRT_SECURE_NO_WARNINGS 1
#include"BStree.h"

void testBStree()
{
	BStree<int> bs;
	int a[] = { 2,5,1,7,4,0 };
	for (auto e : a)
	{
		bs.Insert(e);
		//bs.InsertR(e);
	}
	bs.Inorder();

	bs.EraseR(1);

	BStree<int> b1 = bs;
	b1.Inorder();

	BStree<int> b2;
	b2 = b1;
	b2.Inorder();
	//bs.EraseR(5);
	//bs.erase(5);
	bs.Inorder();

}
int main()
{
	testBStree();
	return 0;
}
